Flush a stream. If the stream is an input stream, then the stream
is synchronised for unbuffered I/O. If the stream is an output
stream, then any buffered data is written.
INPUTS
stream
Flush this stream. May be NULL. In this case, all
output streams are flushed.